package com.jugheadzhou.emrpoc.model;

import java.io.Serializable;
import java.time.LocalDateTime;

import com.jugheadzhou.emrpoc.mybatis.UUIdGenId;
import lombok.Data;
import tk.mybatis.mapper.annotation.KeySql;

import javax.persistence.Column;
import javax.persistence.Id;

/**
 * 
 * @author jugheadzhou
 * @date 2021-10-24 21:52:36
 */ 
@Data
public class MedicalRecordContent implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@KeySql(genId = UUIdGenId.class)
	private String id;
	/** 病历记录ID */
	@Column(name = "recordId")
	private String recordId;
	/** 当前版本号 */
	private Integer revision;
	/** 来自于哪一个版本号 */
	@Column(name = "fromRevision")
	private Integer fromRevision;
	/** 病历内容 */
	private String content;
	/** 创建人 */
	@Column(name = "createdBy")
	private String createdBy;
	/** 创建时间 */
	@Column(name = "createTime")
	private LocalDateTime createTime;
	/** 完成状态（0-未完成，1-已完成） */
	private Integer published = 0;
	/** 完成时间 */
	@Column(name = "publishTime")
	private LocalDateTime publishTime;
	/** 完成人 */
	@Column(name = "publishedBy")
	private String publishedBy;
	/** 打印状态（0-未打印，1-已打印） */
	private Integer printed = 0;
	/** 最新打印时间 */
	@Column(name = "lastPrintTime")
	private LocalDateTime lastPrintTime;
	/** 最新打印人 */
	@Column(name = "lastPrintedBy")
	private String lastPrintedBy;

}

